package com.yoda.youdianda.controller;


import com.yoda.youdianda.domain.YddCate;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("ydd_cate")
@Slf4j
public class ClassifyController {

    //新增分类
    @PostMapping
    public void save(@RequestBody YddCate classify) {
        log.info(classify.toString());
    }
}
